package Test;

public class ServerImpl1 implements Service {
    private int    i    = 0;
    private String test = "begin";
    private String o1, o2;

    public int printt(String msg) throws InterruptedException {

        /*
         *       test=msg;
         *       System.out.println(o2+" "+i);
         *       //System.out.println("test"+test);
         *       i++;
         *       if(i==1){
         *               o1="enter i=1";
         *       }
         *       if(i==2)
         *               o2="enter i=2";
         *       Thread.currentThread().sleep(500);
         *       long s=System.currentTimeMillis();
         *       String k=String.valueOf(s);
         *       Date l=new Date(s);
         *       //System.out.println(l);
         *
         */
        Thread.currentThread().sleep(200);
        System.out.println("server 1" + msg);

        return 1;
    }
}


 
